<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>The Transliterator class</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="spoofchecker.setchecks.html">Spoofchecker::setChecks</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="transliterator.construct.html">Transliterator::__construct</a></div>
 <div class="up"><a href="book.intl.html">intl</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="class.transliterator" class="reference">
 <h1 class="title">The Transliterator class</h1>
 

 <div class="partintro"><p class="verinfo">(PHP &gt;= 5.4.0, PECL intl &gt;= 2.0.0)</p>

  
  <div class="section" id="transliterator.intro">
   <h2 class="title">简介</h2>
   <p class="simpara">
    Transliterator provides transliteration of strings.
   </p>
  </div>
  

  <div class="section" id="transliterator.synopsis">
   <h2 class="title">类摘要</h2>

   
   <div class="classsynopsis">
    <div class="ooclass">
     
    </div>

    
    <div class="classsynopsisinfo">
     <span class="ooclass">
      <strong class="classname">Transliterator</strong>
     </span>
     {</div>
    
    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 常量 */</div>
    <div class="fieldsynopsis">
     <span class="modifier">const</span>
     <span class="type">integer</span>
      <var class="fieldsynopsis_varname"><a href="class.transliterator.html#transliterator.constants.forward"><var class="varname">FORWARD</var></a></var>
     <span class="initializer"> = 0</span>
    ;</div>

    <div class="fieldsynopsis">
     <span class="modifier">const</span>
     <span class="type">integer</span>
      <var class="fieldsynopsis_varname"><a href="class.transliterator.html#transliterator.constants.reverse"><var class="varname">REVERSE</var></a></var>
     <span class="initializer"> = 1</span>
    ;</div>


    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 属性 */</div>
    <div class="fieldsynopsis">
     <span class="modifier">public</span>
      <var class="varname"><a href="class.transliterator.html#transliterator.props.id">$<var class="varname">id</var></a></var>
    ;</div>


    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 方法 */</div>
    <div class="constructorsynopsis dc-description">
   <span class="methodname"><a href="transliterator.construct.html" class="methodname">__construct</a></span>
    ( <span class="methodparam">void</span>
   )</div>

    <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="type">Transliterator</span><span class="methodname"><a href="transliterator.create.html" class="methodname">create</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$id</code></span>
   [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$direction</code></span>
  ] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="type">Transliterator</span><span class="methodname"><a href="transliterator.createfromrules.html" class="methodname">createFromRules</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$rules</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$direction</code></span>
  ] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">Transliterator</span><span class="methodname"><a href="transliterator.createinverse.html" class="methodname">createInverse</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
    <span class="modifier">public</span> <span class="type">int</span><span class="methodname"><a href="transliterator.geterrorcode.html" class="methodname">getErrorCode</a></span>
     ( <span class="methodparam">void</span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">string</span><span class="methodname"><a href="transliterator.geterrormessage.html" class="methodname">getErrorMessage</a></span>
    ( <span class="methodparam">void</span>
    )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="type">array</span><span class="methodname"><a href="transliterator.listids.html" class="methodname">listIDs</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">string</span><span class="methodname"><a href="transliterator.transliterate.html" class="methodname">transliterate</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$subject</code></span>
   [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$start</code></span>
   [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$end</code></span>
  ]] )</div>

   }</div>
   

  </div>

  
  
  <div class="section" id="transliterator.props">
   <h2 class="title">属性</h2>
   <dl>

    
     <dt id="transliterator.props.id"><var class="varname"><var class="varname">id</var></var></dt>

     <dd>

      <p class="para"/>
     </dd>

    
   </dl>

  </div>
  

  
  
  <div class="section" id="transliterator.constants">
   <h2 class="title">预定义常量</h2>
   <dl>


    
     <dt id="transliterator.constants.forward"><strong><code>Transliterator::FORWARD</code></strong></dt>

     <dd>

      <p class="para"/>
     </dd>

    

    
     <dt id="transliterator.constants.reverse"><strong><code>Transliterator::REVERSE</code></strong></dt>

     <dd>

      <p class="para"/>
     </dd>

    

   </dl>

  </div>
  

 </div>

 

























































<h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="transliterator.construct.html">Transliterator::__construct</a> — Private constructor to deny instantiation</li><li><a href="transliterator.create.html">Transliterator::create</a> — Create a transliterator</li><li><a href="transliterator.createfromrules.html">Transliterator::createFromRules</a> — Create transliterator from rules</li><li><a href="transliterator.createinverse.html">Transliterator::createInverse</a> — Create an inverse transliterator</li><li><a href="transliterator.geterrorcode.html">Transliterator::getErrorCode</a> — Get last error code</li><li><a href="transliterator.geterrormessage.html">Transliterator::getErrorMessage</a> — Get last error message</li><li><a href="transliterator.listids.html">Transliterator::listIDs</a> — Get transliterator IDs</li><li><a href="transliterator.transliterate.html">Transliterator::transliterate</a> — Transliterate a string</li></ul>
</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="spoofchecker.setchecks.html">Spoofchecker::setChecks</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="transliterator.construct.html">Transliterator::__construct</a></div>
 <div class="up"><a href="book.intl.html">intl</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
